package com.beta.mapper;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.beta.dto.region.CRegionDto;
import com.beta.entity.CRegionLevels;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * CRegionLevels 表数据库控制层接口
 *
 */
public interface CRegionLevelsMapper extends AutoMapper<CRegionLevels> {

    List<CRegionDto> selectRegionsOfLevels(@Param("levels") List<Integer> levels);

    List<CRegionDto> selectRegionsByLevel(@Param("level") Integer level);

    List<CRegionDto> selectRegionsByParentId(@Param("parentId") Integer parentId);

}